<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>

  <head>
      <title>Simple jsp page</title></head>
  <body style="background-color:#87cefa;">
      <h2>Alarm</h2>
      <div style="border:1px solid white; margin:50px 200px 0px 200px;">
          <h:form>
              <table>
                  <tr>
                      <td>Title</td>
                      <td><h:inputText value="#{controller.tmpAlarmOne.title}"/></td>
                  </tr>
                  <tr>
                      <td>Type</td>
                      <td>
                          <h:selectOneMenu value="#{controller.tmpAlarmOne.type}">
                              <f:selectItems value="#{types.types}"/>
                          </h:selectOneMenu>
                      </td>
                  </tr>
                  <tr>
                      <td>Occurrence</td>
                      <td>
                          <h:selectOneMenu value="#{controller.tmpAlarmOne.occurrence}">
                              <f:selectItems value="#{occur.occur}"/>
                          </h:selectOneMenu>
                      </td>
                  </tr>
                  <tr>
                      <td>Date</td>
                      <td>
                          <h:inputText value="#{controller.tmpAlarmOne.sdate}"/>
                      </td>
                  </tr>
                  <tr>
                      <td>Time</td>
                      <td><h:inputText value="#{controller.tmpAlarmOne.time}"/></td>
                  </tr>
                  <tr>
                      <td>Note</td>
                      <td><h:inputText value="#{controller.tmpAlarmOne.note}"/></td>
                  </tr>
                  <tr>
                      <td>Status:  </td>
                      <td>
                          <h:selectOneMenu value="#{controller.tmpAlarmOne.status}">
                              <f:selectItems value="#{statuses.statuses}"/>
                          </h:selectOneMenu>
                      </td>
                  </tr>
              </table>


              <h:commandButton value="Save" action="#{alarmOne.saveAndEdit}"/>
          </h:form>

      </div>
  </body>
</f:view>
</html>